package com.antoco.operation.bigscreen.controller.modelcontroller.intf;

import com.antoco.operation.bigscreen.model.dto.SuiweiWatchDTO;
import com.antoco.operation.bigscreen.second.ValidList;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Api(tags = "水量监测 API")
public interface SuiweiWatchController {
    // @ApiOperation("Add new data")
    public SuiweiWatchDTO save(@RequestBody SuiweiWatchDTO suiweiWatch);

    @ApiOperation("插入多条记录")
    public List<SuiweiWatchDTO> saveLists(@RequestBody ValidList<SuiweiWatchDTO> suiweiWatchDTOLists);

    // @ApiOperation("Find by Id")
    public SuiweiWatchDTO findById(@PathVariable("id") String id);

    // @ApiOperation("Delete based on primary key")
    public void delete(@PathVariable("id") String id);

    // @ApiOperation("Find all data")
    public List<SuiweiWatchDTO> list();

    // @ApiOperation("Pagination request")
    public Page<SuiweiWatchDTO> pageQuery(Pageable pageable);

    // @ApiOperation("Update one data")
    public SuiweiWatchDTO update(@RequestBody SuiweiWatchDTO dto, @PathVariable("id") String id);
}